package main

import (
	"fmt"; "strings"
)
func main(){
	str := "The quick brown fox jumps over the lazy dog"
	sl  := strings.Fields(str)
	for _, val := range sl{
		fmt.Printf("%s - ", val)
	}
	fmt.Println()

	str2 := "GO1|The ABC of GO|25"
	sl2  := strings.Split(str2, "|")
	for _, val := range sl2{
		fmt.Printf("%s - ", val)
	}
	fmt.Println()
	
	str3 := strings.Join(sl2, ";")
	fmt.Printf("sl2 joined by ;: %s\n", str3)
}
